package com.flower.service;

import com.flower.model.dto.CustomerDTO;
import com.flower.model.dto.CustomerPageQueryDTO;
import com.flower.model.entity.Customer;
import com.flower.result.PageResult;

import java.util.List;

@SuppressWarnings("all")
/**
 *@ClassName CustomerService
 *@Description TODO
 *@Author @O_o  GW__
 *@Date 2025/6/13 15:35
 *@Version 1.0
 */

public interface CustomerService {
    PageResult page(CustomerPageQueryDTO customerPageQueryDTO);

    void addOrUpdate(CustomerDTO customerDTO);

    void deleteCustomer(Integer id);

    void deleteCustomerBatch(List<Integer> ids);

    List<Customer> list();

    int nameValidate();
    int saleValidate();

    void saveBatch(List<Customer> customers);
}
